<template>
    <order-card class="mt-4" />
</template>
  
  <script>
    import OrderCard from "./components/OrderCard.vue";
    import router from "@/router/index.js"

  export default {
    name: "orders",
    components: {
        OrderCard,
    },
    created(){
    const flag = sessionStorage.getItem("LOGINFLAG")
    if(flag == null){
      router.push('/signin')
    }
  },
    data() {
      return {
        stats: {
          titleColor: "opacity-7 text-white",
          descColor: "text-white",
          trip: {
            title: "Today's Trip",
            desc: "145 KM",
            classIcon: "text-dark ni ni-money-coins",
          },
          health: {
            title: "Battery Health",
            desc: "99 %",
            classIcon: "text-dark ni ni-controller ",
          },
          speed: {
            title: "Average Speed",
            desc: "56 Km/h",
            classIcon: "text-dark ni ni-delivery-fast",
          },
          volume: {
            title: "Music Volume",
            desc: "15/100",
            classIcon: "text-dark ni ni-note-03",
          },
        },
      };
    },
  };
  </script>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           